<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="author" content="wangbo">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>隐藏</title>
  <style>
    main{
      background-color: lightcoral;
      /* 浮动的效果清除掉,子类高,又可以被父类捕获到了 */
      overflow: hidden;
      /* height: 20px; */
    }
    /* 浮动会脱离标准流,导致父类里边没哟元素了 */
    div{width: 200px;height: 200px;float: left;}
    .c1{background-color: chartreuse;}
    .c2{background-color:cyan;}
    .c3{background-color: red;}
  </style>
</head>
<body>
  <main>
    <div class="c1">我是div1</div>
    <div class="c2">我是div2</div>
    <div class="c3">我是div3</div>
    水电费水电费是就电风扇东方老师两地分居老师讲述了是大丰
  </main>
</body>
</html>